import request from '../../request'
export default {
  index(params) {
    return request({
      url: '/admin/equipment/material',
      method: 'get',
      params
    })
  },
  create(data) {
    return request({
      url: '/admin/equipment/materialCreate',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/admin/equipment/materialUpdate',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: '/admin/equipment/materialDelete',
      method: 'get',
      params: {
        id
      }
    })
  }
}
